#include<iostream>
using namespace std;
double ans=0;
int n;
int main()
{
	cin>>n;
	for(int i=1;i<=n;i++)
	{
		int k=i*2-1;
		ans+=(double)1/k;
	}
	cout<<ans<<endl;
	return 0;
}
